import request from '@/utils/request'

// 首页4个统计
export function getIndexInfo(params) {
  return request({
    url: '/system/order/getIndexInfo',
    method: 'get',
    params
  })
}
// 房产状态
export function getHouseStatus(params) {
  return request({
    url: '/system/order/getAssetStatus',
    method: 'get',
    params
  })
}

// 巡检工单
export function getInspection(params) {
  return request({
    url: '/system/order/getWorkOrderStatus',
    method: 'get',
    params
  })
}

// 合同签约分析
export function getContract(params) {
  return request({
    url: '/system/order/getContractStatus',
    method: 'get',
    params
  })
}

// 合同到期预警
export function getContractWarning(params) {
  return request({
    url: '/system/order/getContractEnd',
    method: 'get',
    params
  })
}

// 合同金额分析
export function getContractMoney(params) {
  return request({
    url: '/system/order/getContractRent',
    method: 'get',
    params
  })
}

// 保养维护工单
export function getWorkOrder(params) {
  return request({
    url: '/system/order/getWorkOrder',
    method: 'get',
    params
  })
}
// 公司下拉框
export function listCompany(params) {
  return request({
    url: '/system/dept/listCompany',
    method: 'get',
    params
  })
}
